<script>
function resetFormAction(frm) {
	if (frm.type.options[frm.type.selectedIndex].value == "PLAYER_SCORE") {
		frm.action = "submitPlayerScoreParser.php";
	}
	else if (frm.type.options[frm.type.selectedIndex].value == "PLAYER_SCORE_SC") {
		frm.action = "submitPlayerScoreFromSCParser.php";
	}
	else if (frm.type.options[frm.type.selectedIndex].value == "SELECTED_TEAMS") {
		frm.action = "submitSelectedTeamsParser.php";
	}	
}
</script>
<b>Enter Player Score data below</b>
<form action="submitPlayerScoreParser.php" method="post">
<select name="type" onchange="resetFormAction(this.form);">
	<option value="PLAYER_SCORE">Player Score</option>
	<option value="PLAYER_SCORE_SC">Player Score(From SC)</option>	
	<option value="SELECTED_TEAMS">Selected Teams</option>
</select>
<textarea rows="20" cols="60" name="textDump"></textarea><br>
<input type="button" value="Submit" onclick="this.form.submit()">
</form>